<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@page import="java.util.*" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Verification</title>
</head>
<body>

<% 

    
	String degreeSpecializationParam = request.getParameter("degreeSpecialization");

	String specializationIDParam = "";
	String[] tokens = new String[10];
	tokens = degreeSpecializationParam.split("#");
    if(tokens.length > 1){
    	
        degreeSpecializationParam = tokens[0];
        specializationIDParam = "" + tokens[1].charAt(tokens[1].length() - 1);
    
    }
	System.err.println("specialization: " + degreeSpecializationParam);
	System.err.println("id: " + specializationIDParam);
	if(degreeSpecializationParam != null)
	{
		session.setAttribute( "degreeSpecializationSes", degreeSpecializationParam );
		session.setAttribute( "specializationIDSes", specializationIDParam);
	}

	
%>
	
	<%= session.getAttribute("firstNameSes") %>
	<%= session.getAttribute("middleInitialSes") %>
	<%= session.getAttribute("lastNameSes") %><br>
	Citizen of <%= session.getAttribute("citizenSes") %><br>
	Resident of <%= session.getAttribute("residentSes") %><br>
	Address: <%= session.getAttribute("streetSes") %><br>
	City: <%= session.getAttribute("citySes") %><br>
	<%
	if( session.getAttribute("stateSes") != null )
	{ %>
		State: <%= session.getAttribute("stateSes") %><br>
	<%
	}
	else
	{ %>
		Country Code: <%= session.getAttribute("countryCodeSes") %><br>
		
	<% } %>
	Zip: <%= session.getAttribute("zipSes") %><br>
	Phone Number: (<%= session.getAttribute("areaCodeSes") %>) <%= session.getAttribute("phoneSes") %><br>
	<br>

	<%
	if ( session.getAttribute("permanentResident") != null)
	{ %>
		Domestic Status: <%= session.getAttribute("permanentResident") %><br><br>
	<% } 

	Vector degreeInfo = (Vector) session.getAttribute( "degreeInfoSes" );

	for( int i = 0; i< degreeInfo.size(); i=i+8 )
	{ %>
		University: <%= ((Vector)session.getAttribute("degreeInfoSes")).elementAt(i+6) %><br>
		Major: <%= ((Vector)session.getAttribute("degreeInfoSes")).elementAt(i+7) %><br>
		Date degree Received: <%= ((Vector)session.getAttribute("degreeInfoSes")).elementAt(i+2) %><br>
		GPA: <%= ((Vector)session.getAttribute("degreeInfoSes")).elementAt(i+3) %><br>
		Degree Type: <%= ((Vector)session.getAttribute("degreeInfoSes")).elementAt(i+4) %><br>
		Resume: <%= ((Vector)session.getAttribute("degreeInfoSes")).elementAt(i+5) %><br><br>
		
	<% } %>
	Specialization: <%= session.getAttribute("degreeSpecializationSes") %><br><br>
	
<%
	if(degreeSpecializationParam != null)
	{ %>
		
		
		Please verify your information<br>
		<form method="GET" action="12_SaveData.jsp">
		<input type="submit" value="Done"/><br><br>
		</form>
		
		<form method="GET" action="13_Cancellation.jsp">
		<input type="submit" name="cancelButton" value="Cancel"/>
		</form>
		
<% } %>


<br><br>


</body>
</html>